package com.itheima.job3;

import java.io.*;

public class Test {
    public static void main(String[] args) {
        BufferedReader br=null;
        BufferedWriter bw =null;
        try {
            br = new BufferedReader(new FileReader("E:test/text.txt"));

            String s;
            while(( s = br.readLine())!=null) {

                String ts = s.replaceAll("TMD","***").replaceAll("SB","**");
                System.out.println(ts);



            }
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            try {
                br.close();
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }

    }
}
